﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Domain.Entities.Auditing;
using Abp.Domain.Entities;
using JPW.OnlinePaperSubmissionSystem.Authorization.Users;

namespace JPW.OnlinePaperSubmissionSystem.Project
{
    [Table("AnnouncementContacts")]
    public class AnnouncementContact : Entity<long>
    {
        [ForeignKey("ReceiveUserId")]
        public virtual User ReceiveUser { get; set; }
        public virtual long? ReceiveUserId { get; set; }
        [ForeignKey("SendUserId")]
        public virtual User SendUser { get; set; }
        public virtual long? SendUserId { get; set; }
        [ForeignKey("AnnouncementId")]
        public virtual Announcement Announcement { get; set; }
        public virtual long? AnnouncementId { get; set; }

    }
}


